﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DreamCube.Foundation.Basic.Utility;

public partial class TestPost_ClientPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        String serverPage = MyWebsite.GetServerAddr() + "TestPost/ServerPage.aspx";
        String text = "黎鉴黎鉴黎鉴黎鉴黎鉴";
        //第一种方式
        //MyWeb.PostTo(serverPage, text, null, null);

        //第二种方式
        //Dictionary<String, String> forms = new Dictionary<string, string>();
        //forms.Add("lijian", text);
        //MyWeb.PostTo(serverPage, forms, null);

        String filePath = Path.Combine(MyPage.CurFolderPhysicalPath, "Images\\1.jpg");
        MyWeb.PostTo(serverPage, filePath, null);
    }
}